package giit.computerbase.dao;

import giit.computerbase.util.Application;

/**
 * User: tum0r
 * Package Name: giit.computerbase.dao
 * Time: 2018/11/12 Monday 15:47:21
 */
public class SQLFactory {
    public static SQL getSQL() throws ClassNotFoundException {
        SQL sql = null;
        switch ((String) Application.getConfig().databaseConfig.get("type")) {
            case "mysql":
                sql = new MySQL();
                break;
            case "sql server":
                break;
        }
        return sql;
    }
}
